package com.tem.purchase.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品分类
 * </p>
 *
 * @author 腾木
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_type")
@ApiModel(value="ProductType对象", description="产品分类")
public class ProductType implements Serializable {
    private static final long serialVersionUID=408945213154561L;
    @ApiModelProperty(value = "产品分类")
    @TableId(value = "product_type_id", type = IdType.AUTO)
    private Long productTypeId;

    @ApiModelProperty(value = "店铺")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "系统")
    @TableField("system_level_id")
    private Long systemLevelId;

    @ApiModelProperty(value = "父id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "栏目名称")
    @TableField("type_name")
    private String typeName;

    @ApiModelProperty(value = "排序降序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "状态 1激活 0失效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
